#ifndef DHT11_H_
#define DHT11_H_
#include "headfile.h"
 
#define DHT11_DQ_High P40=1
#define DHT11_DQ_Low  P40=0
#define DHT11_IO  P40

void DHT11_IO_OUT(void);
void DHT11_IO_IN (void);
void DHT11_Init(void);
void DHT11_Rst(void);
uint8 DHT11_Read_Data(uint8 *temp,uint8 *hum);
uint8 DHT11_Read_Byte(void);
uint8 DHT11_Read_Bit(void);
uint8 DHT11_Check(void);


void DHT11_start();
unsigned char DHT11_rec_byte();
void DHT11_get_Data(uint8 *temp,uint8 *hum);

#endif